package p270jp.pxv.android.model.pixiv_sketch;

import android.support.p024v4.media.C0261e;
import p325m0.MutabilityOwnership;

/* compiled from: GiftSummary.kt */
/* renamed from: jp.pxv.android.model.pixiv_sketch.GiftSummary */
/* loaded from: classes2.dex */
public final class GiftSummary {
    public static final int $stable;
    private final long amount;
    private final SketchLiveGiftingItem giftingItem;

    public GiftSummary(long j, SketchLiveGiftingItem sketchLiveGiftingItem) {
        MutabilityOwnership.m3745m(sketchLiveGiftingItem, "giftingItem");
        this.amount = j;
        this.giftingItem = sketchLiveGiftingItem;
    }

    public static /* synthetic */ GiftSummary copy$default(GiftSummary giftSummary, long j, SketchLiveGiftingItem sketchLiveGiftingItem, int i, Object obj) {
        if ((i & 1) != 0) {
            j = giftSummary.amount;
        }
        if ((i & 2) != 0) {
            sketchLiveGiftingItem = giftSummary.giftingItem;
        }
        return giftSummary.copy(j, sketchLiveGiftingItem);
    }

    public final long component1() {
        return this.amount;
    }

    public final SketchLiveGiftingItem component2() {
        return this.giftingItem;
    }

    public final GiftSummary copy(long j, SketchLiveGiftingItem sketchLiveGiftingItem) {
        MutabilityOwnership.m3745m(sketchLiveGiftingItem, "giftingItem");
        return new GiftSummary(j, sketchLiveGiftingItem);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof GiftSummary)) {
            return false;
        }
        GiftSummary giftSummary = (GiftSummary) obj;
        return this.amount == giftSummary.amount && MutabilityOwnership.m3749h(this.giftingItem, giftSummary.giftingItem);
    }

    public final long getAmount() {
        return this.amount;
    }

    public final SketchLiveGiftingItem getGiftingItem() {
        return this.giftingItem;
    }

    public int hashCode() {
        long j = this.amount;
        return this.giftingItem.hashCode() + (((int) (j ^ (j >>> 32))) * 31);
    }

    public String toString() {
        StringBuilder c = C0261e.m12042c("GiftSummary(amount=");
        c.append(this.amount);
        c.append(", giftingItem=");
        c.append(this.giftingItem);
        c.append(')');
        return c.toString();
    }
}
